/**
 * Copyright &copy; 2017-2020 <a href="http://www.fosung.com/">FosungFrame</a> All rights reserved.
 */
package com.fosung.frame.modules.partysinfo.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.fosung.frame.common.persistence.DataEntity;
import com.fosung.frame.modules.partytype.entity.PartyType;
import com.fosung.frame.modules.sys.entity.Menu;
import com.google.common.collect.Lists;

/**
 * 组织类型信息设置Entity
 * @author wu
 * @version 2017-09-07
 */
public class PartysInfo extends DataEntity<PartysInfo> {
	
	private static final long serialVersionUID = 1L;
	private String organizationId;		// 党组织信息
	private String organizationName;		// 党组织信息名称
	private String typeId;		// 党组织类型
	private String state;		// 状态
	private String parentid;		// parentid
	private String haschildren;		// haschildren
	private String sort;		// sort
	private String code;		// code
	private PartyType partyType;
	private String pOrganizationId;
	private String orgIds;
	
	public PartysInfo() {
		super();
	}

	public PartysInfo(String id){
		super(id);
	}

	@Length(min=0, max=64, message="党组织信息长度必须介于 0 和 64 之间")
	public String getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
	}
	
	@Length(min=0, max=200, message="党组织信息名称长度必须介于 0 和 200 之间")
	public String getOrganizationName() {
		return organizationName;
	}

	public void setOrganizationName(String organizationName) {
		this.organizationName = organizationName;
	}
	
	@Length(min=0, max=64, message="党组织类型长度必须介于 0 和 64 之间")
	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=64, message="parentid长度必须介于 0 和 64 之间")
	public String getParentid() {
		return parentid;
	}

	public void setParentid(String parentid) {
		this.parentid = parentid;
	}
	
	@Length(min=0, max=1, message="haschildren长度必须介于 0 和 1 之间")
	public String getHaschildren() {
		return haschildren;
	}

	public void setHaschildren(String haschildren) {
		this.haschildren = haschildren;
	}
	
	@Length(min=0, max=10, message="sort长度必须介于 0 和 10 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}
	
	@Length(min=0, max=255, message="code长度必须介于 0 和 255 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public PartyType getPartyType() {
		return partyType;
	}

	public void setPartyType(PartyType partyType) {
		this.partyType = partyType;
	}

	public String getpOrganizationId() {
		return pOrganizationId;
	}

	public void setpOrganizationId(String pOrganizationId) {
		this.pOrganizationId = pOrganizationId;
	}

	public String getOrgIds() {
		return orgIds;
	}

	public void setOrgIds(String orgIds) {
		this.orgIds = orgIds;
	}
	
}